const panel = this.pageObj.getApiWidgetByAliasName('event-panel')?.widgetObj;
const queryManage = this.pageObj.getApiWidgetByAliasName('queryManage')?.widgetObj;
const type = this.pageObj.getVariables().find(v => v.name === 'panelType')?.value || 0;
const process = this.pageObj.getVariables().find(v => v.name === 'whetherProcess')?.value || 0;
const _form = this.getApiPage().retrievePlugin('base-forms');
const searchText = _form.getFormData('form_12')?.search;

console.log($event);
this.getApiPage().setVariables([{ name: 'searchText', value: searchText }]);

if (+type === 0) {
  queryManage.queryDrillNews(process, searchText).then(res => {
    panel.setData([{data: res}]);
    panel.render()
  })
} else {
  queryManage.queryDrillGroup(type, process).then(res => {
    panel.setData([{data: res}]);
    panel.render()
  })
}




